package cn.itsource.basic.utils;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class PageBean<T> {

    private Long totals = 0L; // 总条数
    private List<T> data = new ArrayList<>();   // 数据


    public PageBean() {
    }

    public PageBean(Long totals, List<T> data) {
        this.totals = totals;
        this.data = data;
    }
}
